<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: sauver_article.php,v $ 
 * $Date: 2005/08/31 10:13:46 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
require_once(get_path_module('sql.export'));
$query = " WHERE id='$page' LIMIT 1";
$query = get_table_content_fast("article", $query);
$query = ereg_replace (" VALUES \([[:digit:]]+,", " VALUES (\$page,",$query);
$script = "\$query=\"DELETE FROM article WHERE id='\$page'\";\n";
$script.= "rportalrequete(\$query) or rportalerreur(\"La creation de l'article ID=\$page a echoue.\",\"?op=\");\n";
$script.= "rportalrequete(\"".$query."\") or rportalerreur(\"La creation de l'article ID=\$page a echoue.\",\"?op=\");";
?>